package com.abe.libquick.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.abe.libquick.main.VideoPlayerActivity;
import com.abe.libquick.utils.quick.EmptyUtils;

public class VideoShowHelper {
    public static final String VIDEO_PATH = "videoPath";

    public static void show(Activity activity, String path, String... img) {
        if (EmptyUtils.isEmpty(activity) || EmptyUtils.isEmpty(path)) return;
        Intent intent = new Intent(activity, VideoPlayerActivity.class);
        Bundle bundle = new Bundle();
        bundle.putString(VIDEO_PATH, path);
        if (img.length > 0)
            bundle.putString(ConstantMBLib.IMG_PATH, img[0]);
        intent.putExtras(bundle);
        activity.startActivity(intent);
    }
}